package com.hzw.saas.web.app.user.param;

import javax.validation.constraints.Pattern;

import com.hzw.saas.common.util.AccountValidatorUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/4/12 22:46
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "编辑资料参数")
public class UserProfileParam {

    @Pattern(regexp = AccountValidatorUtil.REGEX_LONG_CHINESE_NAME_OR_BLANK, message = "姓名格式不正确")
    @ApiModelProperty(value = "姓名", position = 0)
    private String realName;

    @ApiModelProperty(value = "学校/机构", position = 1)
    private String organ;;

    @ApiModelProperty(value = "身份/职位", position = 2)
    private String title;

    @ApiModelProperty(value = "研究方向", position = 3)
    private String research;

    @ApiModelProperty(value = "头像", position = 4)
    private String avatar;

}
